package com.guli.gulimall.product.feign;

import com.guli.common.utils.R;
import com.guli.gulimall.product.feign.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "gulimall-seckill",fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {

   @GetMapping("/sku/seckill/{skuId}")
   R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);

}
